import request from '@/utils/request'

export function fetchPagePrivilegeDefineList(data) {
  return request({
    url: '/cloud-system/getPagePrivilegeDefineList',
    method: 'post',
    data
  })
}

export function fetchPagePrivilegeDefineOne(data) {
  return request({
    url: '/cloud-system/getOnePagePrivilegeDefineDetail',
    method: 'post',
    data
  })
}

export function createPagePrivilegeDefine(data) {
  return request({
    url: '/cloud-system/createOnePagePrivilegeDefine',
    method: 'post',
    data
  })
}

export function updatePagePrivilegeDefine(data) {
  return request({
    url: '/cloud-system/updateOnePagePrivilegeDefine',
    method: 'post',
    data
  })
}

export function deletePagePrivilegeDefine(data) {
  return request({
    url: '/cloud-system/deleteOnePagePrivilegeDefine',
    method: 'post',
    data
  })
}
export function batchDeletePagePrivilegeDefine(data) {
  return request({
    url: '/cloud-system/batchDeletePagePrivilegeDefine',
    method: 'post',
    data
  })
}

export function lockPagePrivilegeDefine(data) {
  return request({
    url: '/cloud-system/lockOnePagePrivilegeDefine',
    method: 'post',
    data
  })
}

export function unlockPagePrivilegeDefine(data) {
  return request({
    url: '/cloud-system/unlockOnePagePrivilegeDefine',
    method: 'post',
    data
  })
}

export function batchLockPagePrivilegeDefine(data) {
  return request({
    url: '/cloud-system/batchLockPagePrivilegeDefine',
    method: 'post',
    data
  })
}

export function batchUnlockPagePrivilegeDefine(data) {
  return request({
    url: '/cloud-system/batchUnLockPagePrivilegeDefine',
    method: 'post',
    data
  })
}
